import { GoodsResult } from "../types/goods";
import { http } from "../utils/request";

/**
 * 根据id获取商品详情页信息
 */
export function getGoodsByIdAPI(id : string) {
	return http<GoodsResult>({
		method: "GET",
		url: '/goods',
		data: {
			id
		}
	})
}